<?php

namespace App\Http\Controllers\Admin;

use App\Http\Requests\Admin\Vpn\CreateRequest;
use App\Models\Admin\Level;
use App\Models\Order;
use App\Models\Vpn;
use App\Http\Controllers\Controller;

class OrderController extends Controller
{
    public function index()
    {
        $orders = Order::with(['product.level', 'admin'])->orderBy('id', 'desc')->paginate(10);
        return view('admin.order.index', compact('orders'));
    }
}
